Use an unused high bit in the XID to mark fonts in the global xid hash
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Jan 2006 04:35:24 +0000 (04:35 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 20 Jan 2006 04:35:24 +0000 (04:35 +0000)
commit73153b42e8394b105a9b42b6a7605145faeffe12
tree3d58a95bf1a06607a155dcbcf811312a9d5e26e7
parent292c69ac7d84600947dfa734c151a85e44147c51
Use an unused high bit in the XID to mark fonts in the global xid hash

2006-01-19  Matthias Clasen  <mclasen@redhat.com>

* gdk/x11/gdkprivate-x11.h (XID_FONT_BIT):
* gdk/x11/gdkfont-x11.c:
* gdk/x11/gdkxid.c: Use an unused high bit in the
XID to mark fonts in the global xid hash table.

* gdk/x11/gdkcursor-x11.c (update_cursor): Skip fonts
when iterating over the xid hash table, since calling
GDK_IS_WINDOW () on an GdkFont can cause a segfault.
(#327751, Ryan Lortie)
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkfont-x11.c
gdk/x11/gdkprivate-x11.h
gdk/x11/gdkxid.c